<template>
  <div id='app'>
    <!--写法会导致所有组件被缓存，出现bug-->
    <!--<keep-alive>-->
    <!--  <router-view />-->
    <!--</keep-alive>-->
    <keep-alive>
      <router-view v-if='$route.meta.isKeepAlive' />
    </keep-alive>
    <router-view v-if='!$route.meta.isKeepAlive' />
  </div>
</template>

<script>

export default {}
</script>

<style lang='less'>

</style>
